//package com.xk.school_device.config;
//
//import com.fasterxml.jackson.databind.ObjectMapper;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @Title: JacksonConfig
// * @Author xk
// * @Package com.xk.school_device.config
// * @Date 2025/4/16 14:52
// * @description: json配置
// */
//@Configuration
//public class JacksonConfig {
//    @Bean
//    public ObjectMapper objectMapper() {
//        ObjectMapper mapper = new ObjectMapper();
//        // 启用默认类型信息，处理复杂对象的序列化
//        mapper.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL);
//        return mapper;
//    }
//}
